import request from '@/utils/request'

// 查询收益释放列表
export function listRelease(query) {
  return request({
    url: '/bussiness/release/list',
    method: 'get',
    params: query
  })
}

// 查询收益释放详细
export function getRelease(id) {
  return request({
    url: '/bussiness/release/' + id,
    method: 'get'
  })
}

// 新增收益释放
export function addRelease(data) {
  return request({
    url: '/bussiness/release',
    method: 'post',
    data: data
  })
}

// 修改收益释放
export function updateRelease(data) {
  return request({
    url: '/bussiness/release',
    method: 'put',
    data: data
  })
}

// 删除收益释放
export function delRelease(id) {
  return request({
    url: '/bussiness/release/' + id,
    method: 'delete'
  })
}
